package com.tap.service.impl;

import com.tap.common.BaseResult;
import com.tap.mapper.HotPlayMapper;
import com.tap.pojo.Game;
import com.tap.service.HotPlayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HotPlayServiceImpl implements HotPlayService {

    @Autowired
    HotPlayMapper hotPlayMapper;

    @Override
    public BaseResult findHotPlayAll() {
        List<Game> list = hotPlayMapper.findHotPlayAll();
        BaseResult baseResult = new BaseResult();
        baseResult.setData(list);
        baseResult.setCode(1);
        return baseResult;
    }
}
